import 'package:flutter/material.dart';




/// 是否深色模式


/// 当前深色模式
///
/// [mode] system(默认)：跟随系统 light：普通 dark：深色
ThemeMode darkThemeMode(String mode) {
  ThemeMode themeMode = ThemeMode.system;
  switch (mode) {
    case 'system':
      themeMode = ThemeMode.system;
    case 'dark':
      themeMode = ThemeMode.dark;
    case 'light':
      themeMode = ThemeMode.light;
  }
  return themeMode;
}

/// 当前多主题


/// 主题基础
class AppTheme {
  AppTheme(this.multipleThemesMode);

  String multipleThemesMode = 'default';

  /// 设备参考大小
  static const double wdp = 360.0;
  static const double hdp = 690.0;

  /// 次要颜色
  static const subColor = Color(0xFFAFB8BF);

  /// 背景色系列
  static const backgroundColor1 = Color(0xFFE8ECF0);
  static const backgroundColor2 = Color(0xFFFCFBFC);
  static const backgroundColor3 = Color(0xFFF3F2F3);

}
